<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>
<script>
  const p1 = () => {
    setTimeout(() => {
      console.log('p1触发了');
    }, 1000)
  }
  const p2 = () => {
    setTimeout(() => {
      console.log('p2触发了');
    }, 500)
  }
  const p3 = () => {
    setTimeout(() => {
      console.log('p3触发了');
    }, 1500)
  }
  p1()
  p2()
  p3()

</script>

</html>